#ifndef AST_DECLARATIONS_IDENTIFIER_LIST_H
#define AST_DECLARATIONS_IDENTIFIER_LIST_H

#include "../ASTNode.h"
class sym;
/*
C99   6.7.5
identifier-list:
		identifier
		identifier-list   ,   identifier
*/
class IdentifierList : public ASTNode
{
protected:
	IdentifierList(void)
		: ASTNode(ASTNode::identifier_list){};
public:
	IdentifierList(sym * pIdentifier, IdentifierList *pIDList = NULL)
		: ASTNode(ASTNode::identifier_list)
		, m_pIdentifier(pIdentifier)
		, m_pIDList(pIDList){};

	virtual ~IdentifierList(void);

	virtual void						codeGen();
protected:
	sym *						m_pIdentifier;
	IdentifierList *			m_pIDList;//may be NULL
};


#endif



